* dired-aux.el (dired-copy-file-recursive): Set mode to "700" if
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Apr 2009 18:12:44 +0000 (18:12 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 5 Apr 2009 18:12:44 +0000 (18:12 +0000)
`file-modes' returns nil.

lisp/dired-aux.el

index 95aaa388310e15fcfb249238430b9c5cae14ab1c..ffb6f4e9cbf4af3b12512c3ce97de011a2b764eb 100644 (file)
@@ -1210,7 +1210,7 @@ Special value `always' suppresses confirmation."
             (or (eq recursive 'always)
                 (yes-or-no-p (format "Recursive copies of %s? " from))))
        ;; This is a directory.
-       (let ((mode (file-modes from))
+       (let ((mode (or (file-modes from) #o700))
              (files
               (condition-case err
                   (directory-files from nil dired-re-no-dot)